REFACTOR: for httpTrace