small change for 607 to support .obj and .off file