Clean net code and some logs