added intermediate program, recursive delete with programs, fixed setting as active on copying over