refactor doc probe analysis