data optimization, better errors info