change emplacement of errorManager class