simple server to parse single-line commands