fixes refer related issues

- refer with as
- multiple refer items remain
fixes special case with '-' in function names