add resources and connection pool