config add flags to struct