add proper logging and change input parameters for incoming post.