FIXED: debug mode