added http success/failure checks to the factories