add pipeline context / stage management