now it works with a standard rest service