defrag: added debug