scripts from Tom