refactor to add commander with help content, extract some common functionality to util, etc