fix logging
creating m2m helper file