add more match fields
fix trema.so library dependency
add more tests