remove dependency on minilib