some more refactoring and added the default phase process-sources