multiple bug fixes
creates commandline script