add wrapper for bwt