bug fixes + 3d example