fix bug with notifies - needs to be within template