script in proper wrapper