refine interactive ask with prompt and expect