the script runs for a second and than closed without displaying nothing.