added ability to customize setFilename routing