change getResource to make it work in windows