added default flag reading