added safe_ruby