refactoring: moved helpers to nw filge
enabled lazy enum of infinite functions