#242 change gate to notice and add type field

#242 solved.