refactor languages configuration