cleaning up the REST call stuff
you know… i should have known this… but it's good now