replacement of script calls