revert to original version because ray's breaks my computer
error was because I didn't make script executable - reverting to original version