remove crufts and applies comments