improved build system; code clean up; added network provider