hsl api stuff