emit alert when something is wrong