restoring running comamnds