config file handling added