working version of `getProjectsSync`