cleanup some codeÃ
ensure project is save in project base folder even if generate is called from somewhere else