restructre and clean up
multiple instance fix with counter
multiple instance fix with counter
initialize new logic with JSON Schema