modify how foundation is extended