some work done on rest-client