bug fix. book existance check for hasRepo mode