additional debuging code for the pi