make chunks func return url and lang along with array