proper handling of the UP flag