finished up the wormhat feature

please review and pull into the master if valid