added depth to node API version of pgest, note that you have to use modified perl wrapper with node API