removing dependency on barkeeputil