adding comments to the pooled_resource
adding a new wrapper type which produces a factory function for you in the simplest case where the factory should simply allocate a new object of the type with arg IDX
this would be silly for you to have to write again and again in any code that uses this