bug fix - avoiding circular json error by not emitting to socket