add passport support and tsdb query