added handle param to onRequest