updated to work with raspbian