fixed inverse relationships; still wip, lotta debug stuff