add hercules support

Change-Id: I713c9c2146af03b51dc52bd35f3f15fa0644cb3f