controlling server start and stop