simplify prompt handling