initialize new repository with a nulladapter for better error handling