remove osname and changed to check namespace