got scan working, added max scan step size, need to end of run segfault