added guard alertmode behavior closes #34