f is needed by elnode