proper compares
typo
use route instead of fn->node
repair null pointer detection