added the possibility for messages longer than 256 characters