correcly reference params, fixes #12