server command parser and impl