improved flags