fix #7 - funcs out of scope..