improve api; improve logs;improve PrintFooter