master-pipe refactor; record