final version of scripts