fixed abstract error
updated to most recent API path changes
added debug mode to rest client