added check for no flags