changed permissions for master and output filename