support for custom docs path and multi file formats