port chapters to different contexts