an error in my messages fk references seems to be breaking everything