setgenerate fix, extra logging