wrapped modules in main methods so they would not all run just when being loaded during testing