commented out code which contains an error because it can prevent running a production run. included a suggestion how to fix it, but i am unable to test it. Jacopo, can you?