removed obsolete error callback