initializing debug earlier