clean up,minimize dom access,remove own3d support