added method to send info to server

just to save intermediate code