change rmdir to remove_dir to actually remove the dir