fixes to startscript