possibly write mesh files
cleanup