maybe consider placing the following commands into another class to reduce the amount of code within the client?