moved debug, removed more old junk, put correct skeleton in place for delete resource