initial commit of backprop for encoders