better handle search param