add default references
bugfixes and support for sigreferences, etc