add some pre-refactor comments