added rmdir and delete