cleaning up some limits usage in extproc