i would recommend against using the optimizer for the time being...obviously needs some work.

would be curious if the patch works though