removed redundant read_config function