Better error handling and selecting of project