migrated accounts to accounts.js