make curl user agent method public