reduce hash lookups and disconnect normalize_port from the options hash
eliminate nil checks in normalize_port