purge
rewrite for basic usage