working version of dataset inheritance