some remote fixes; breakage on document ready