fix #661 by fixing detection of things which need to be parameters