changes to make foundation 5 work