remove beforeFilter on construct function