before controolers and roles