added support for both '/' & '\'