better management of the projects data (now in index.js)