see if we could get rid of pl_wrapper