added a bunch of apis