giant refactor for how nanops are saved