updates code to work successfully when hosted by durastore.