added logging of the requests