3d

adds support for 3d