fixing a few problems on the Pi