moved setting of directory to start and install and start to scripts