got autoencoder inheritance working