allow custom port, fix #1
flush *out* in REPL when printing
client handles :error message