server upload seems to work, fixed monitor bug, refactored remote and local