added support for unlocking and unlocking via hbridge