added debug rest call