refactor language options.