Add pool dir; code create and delete pool