figure out pipeline and contexts, rename classes