wrote dir_exists() and dir_accessible()