fix support for linux and windows