changed to lazy compilation in production