changed some things to work on the pi