make sure script runs only once