refactored app to use last version of client