initial import; working library and CLI client