implemented cli and config
have working test case