converted into repl-based launch. now you can capture keyboard inputs inside a repl. still don't know how to properly exit