simplified public API, added tests for some commands