tried different function for creating pipes for virtual shell