starting work on api