add meta information to requests
refactor codebase