added primary activity_schema to condition untested