adding callbacks to pool manager api calls.