refactors to fix showHelp