still figuring out this emit sequencing issue.