added remote authentication