progress on api implementation