made the example work cross platform