refactor checkstuff (added some more funs to ParamHelpers which we now use in checkStuff)