adjust dir and lang