copy and functionality for logging requests
Merge branch 'magic-req'