improved submission of data. fixed some lib compability bugs