updated pull route to properly build list of new commands and clients according to the client details passed in