started work on api thingies