added alert to report errors