3d modularity