added a few more api functions