added url param handling