remove external apache dependency