basic api functions working and tested