converted spgenesis to httpio