adding robust http stuff, buggy