modified to support meta character, but not implemented yet