sync emits properly