made major changes to input stream on alamode so that it works with rpi