fix require bug and set dependecies