starting to change it to work with the pi