update rep directory