criteria json loads needs to happen earlier