saving running state before refactoring Gemfile