added joins to default_scope for models