updated prompt logging