memory leak due to pub/sub