added get allowed languages function