refactor api a bit; updated orient utils