some utils apis