refactored one-offs.js