add util helper method to qwrap