Getting it working on window

Need to be tested on mac/unix, if not working need to test if windows
(dynamic or option)