rename as query, adding basic curl fun