improve remote authentication