How to set up dynamic wrapper