simple api codes for common using