Changes to error reporting when dashboard off and other changes in mainfile creation