add checks for project.isOpen