added pool creation, fixed escaped strings