adding init loop destroy shell