add gem active attr
add all attributes of event
add more validate and repair too long line