a part of k3dWindow added