refining commands and flagsets