refactors away the context; move compile in to core; adds dynamic bind of pipeline