added widows support
window support and file regex