added history retrieval script to fullfill your desires