anonymous fn arg changed into onRequest fn