ensure gen_MW is numeric
test and log for insert_generation