adding errors and slots