add debugging code to check for fragmentation