added scripts from bounty