support local pipe creation in lib