hercules: cleanup