use Plug from hex