updated some apis