nearly done statusapi conversion