added option to have multiple history