console program working with admin/viewas