tried to make it support windows et al