implement a bff on a shaped source type