added decoupled support for piraso.