commands moved to methods in main module