added a bunch of functions to the repo