edited swap. eventmachine bugs out