fix some old adria code