replaced current checking with NSFoundationVersionNumber