updated with David's bigstring generator impl