fit rest of api functions