added more api functions