added support for master file