better param handling