Fixed multiple system bugs
updated to be as server
worked on global variable