fixes for linux/rpi version from jellyfish