changed private_ip_address and public_ip_address to symbolic calls as suggested by @ohadlevy 
both seem to work, but symbolic calls seem to comply more with convention