added updateClient and ApplyLoan commands with dependency resolution