beginning to implement api