better logging for requests, some minor bugfixes