added remote connection support