exctract scriptTage factory func