re-encapsulate repository