fix admin functions