allow for func defs in specs, closes gh-9