improvements to layer loading and accomodating for backend changes