added curl requests, but need to add an api key validation at some point