did some stuff to scanfragment