getting associations working