fixed piping for post request, temporary arrangement, needs proper testing as well