finish scripts. Now must be tested