various bugfixes for imported addresses