simplifying start and stop scripts