add emergency flag