copied scripts from trunk