replaced die( exception ) with an error message for add/rename dir