adds locator detection, fix idlen and params for streamming data.