updated fixture generation to save between each function call