got it to work with post data