working versions of scripts