progress on http api impl