finalized simple ht API