cutdown rpi code