refactored for address_book.php integration