added post data handling
bug fix for req/request var name
added logging