enhanced Config and data load function