complete with memory leak and resource contention