added support for older Office versions