set mode even when the dir exists