tested on raspberry, worked ok