fix for 'function already exists' (issue #17)