Refactor listen format in config