only append flags of flags are set