refactoring NurlParams and clean up