fixed 3d and build issues