support generic model
fix pool and add pool config
fix framework