added the -g option in case the language is unknown