working on emit. broke packet sending, but will fix.