added some sort of api