fix purge broken by remove ip commit

fixes #6