update SA session to newer pattern, fix session usage in put_batch