adds catch for `NoSuchMethodException