this should be refactored outside of show command