pre doc and auth fixes