tried to get autolaunch to work, need workaround for waitpid call