made some api changes