fixups for pi