added removal of old dir