huge refactor of emcee3