move stuff to scatutils