[s366] redone ingvar sctipt in my old way