add extends; command predicates; reconnect on SIGHUP