added flag clsses and language optionspage