minor improvements to compiler