moved notFound notAllowed to helpers