added buffer load and compare utility