further automation of mesh draw; weird segfault