added ability to intercept post data