get rid of unused function (if needed should be used from net module…)