finally works on rpi!