updated some API