renamed safeApply func in noUtil