added logging for admin