initial api working