safe for directory