#42 second attempt to dynamic stri_wrap (i have some doubts about its correctness)