changes to make it compatible with windows