long_keypair function is added, some functions in new chats also