improved parameters extracting for REST services