checked for nullpointer in onAdminCommand