promotion of scripts to classes