converted to beaker's way of signing cookies