allow disabling method call optimisation with a directive