finally have a fix for the foriegn key, waiting on github feedback