removed keep alive for api() call functionality due to possible stability issues (CLOSE_WAIT, et al)