get rid of multiple calls to isPiped