add xhprof support and authentication support