initial stuff with api and tests