additional sanity checking in the addr processing function