make script wait for input before terminating