calculate lookup_addr the right way -> fewer failures