initial commit for cmd line support. related to #22