make event machine server works