renamed and add some methods to the api