fix require but and set dependecies