cerr cleanup
fix for cluster
write piecewise
remove dbg