EventMachine common utilities