added visits conditions to modules