all working before controllers