get_config small code cleaning