fix what Pirat broke