put the require in the right place