little changes + priorities from log should work now