advances in saving resources, works http, still fails in https