profitability api now working