added require to module definition when needed