Feature/typed pipe debug

should solve #378