fix port number when dialing
fix marshaling of empty Function