added methods to create and discard repositories