adding more bits and pieces to the Raspberry Pi script