added some more functionality to the API