added repository check