this fixes the foundation_and_overrides into working, but it doesn't do it like it probably should. Should be investigated later.