pingapps: should use emit() before send()