FIX: generate scripts