fix require in tasks