adapt to changed api in site package