boolean flags and free