fixes for Processing2.0