add EventEmitter
make all var in class
permssions add idle, remove other uneed