add pool create logic