added ougoing handling