updated to new we.js structure