added troubleshooting logic for uid = admin