changed locator to fileHandler and moved splitext into it