fix require for delegate