tweaks to example and debugging critical path, still dealing with some problems