support old repo style too