handle long reply message
solve timout calculation
add unittest
more arithmetic matching pattern