merged startup and logging scripts