just show req path
use flag to tune log level
404 error
use global apis

otherwise, api will always be the last api in main.foreach