REFACTORED: remove debug.log