WIP code for RBD plugin