fix typo
fix get pipe function