added prefix and suffix to keygen