combined read and set language in main