move secret gen to fund