Never access variables in included files directly (except in views). Define functions or classes and call them. Create a jailing function to do jailed includes of models. See: http://rabbit.kamibu.com/docs/jail

Define a function to do jailed includes, called it import() and include all your models that way.