add interval attribute to check object
refactor command class
extract packet
try eventmachine