fixing promise handling for startServerCmd