fix the checkout index issue
    1. should use && instead || ):
    2. add checkouts as resource