added UNSAFE option as the last resort for older perls