rm workaround