added non-faces flag. some backpropagation stuff