config_parser func was refactored