work on automating auth