maybe warn if there are parameters left in kwargs? (if you have made a typo)