use mesh instead of object file