add and import addresses functions working