updated rest call stuff