updated raspberry pi script