creation of portfolio is working but not 100% automatic
refactoring
refactoring