fix the admin functions