added remote server stuff