removed the main loop in simPrompt