better integration of config file. fixed kernal method bug