changes to borefield sha implementation