added some scripts
some bugfixes
some bugfixes