adding support for denoising auto-encoders