Adapt utils.js to multitenant arquitecture