if debug mode, store config data for debug purpose