better lookup for pipe scope