add parameter for control name. fixes bug where the same source table for different controls goes to the same source_data file