refactor src with easy_net