Get relations  working for 0.4.x