supervisor erb template var refactoring