optimize start script