remove some warnings and config dump

Signed-off-by: Willi Ye <williye97@gmail.com>