Fixes for running on pi
fixes