switched to arena malloc to fix #472