finished testing and implementation for remote client