switch to v4 protocol, add background policy support