initial debug mode work