crypthistory command refactored