base code for module 2.0