add base resource/action before/after hooks