rewrite to gnupot