removed dependency on PHP