moved debug module to base
replaced logger with debug