better handling input params
adding active users only flag