allocate networkinterfaces is deprecated now, fixed some bugs in status function