binder: packport from CAF