last minute fixes to deep autoencoder