fixed save flag usage so it doesn't always save