refactor playbook