fixes #34: fix version map;
improve isFunction