minor changes to make admin functions work