added more api and test methods