shifting from eventmachine to a simple loop with signals