implemented save of pipelines to history file