work-in-progress fixes for denoising autoencoders