add optional request logging