initial debug for main.c