added a patch routine for projects - just to set the retiredOn field
some refactoring