fixing prompt logging issues