use strict syntax.
refactor forwarded agent detection logic.