added middle man for server