error code love
name variable addr instead of sa
add successful write test callback