compile errors on pi fix