add middleware for reading admin.txt