fixed program name generation, removed unwanted program disposal