handling multiple chains on the gpu