depth attachment added, some bugs