add function without cURL