normalize config file format
use more elegant way to identifiy self