added support for unaligned references