fixed error messages to fit new signatur