eval authentication and fix lock warning