fixed startup scrpt