modify server script to use on raspberry pi