implement recommendations by bettercrypto

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>