copy; clean up markup