added sorted userId's feature
improved commands security