passing variables to server