- more work on windows compatibility and error handling