refactored getusers(), closes #40