working through curl bugs