extracted into singleton class
REPL server