remove curl module, rewriting it