update a lot of functions and urls