add addr, net interface to flags, implement flushall