reenabled offline functionality. tried to extend partials into one another and make them recursive but may fail at only 1-2