move net parsing into platform independent file