support for both post and get metthods added
version updated