show error when no flags found
code reorganization