refactor: wrap requests into lambdas