added continous loop until exited