fix incorrect callback param name

clean up return value on two rpc calls