addr output added
addr len corrections for output