safe_function for automated installation