set endpoint properly in viz