add redis queue
fix bug
use scoped session and fix many bugs