fixing API post