master script by kent-webrental by p-bx.com