linux support thanks to Alan Chambers