move command methods out into their own methods