added helper functions for extending page and module classes