how to make it work on both OS