added logs for main