added environments handling on modules configuration