separate data module from main