integrating with pedro's client