adding script with auto quit