added type to errorcallback

bugje gaf errors