abstracted unit login to work with any naming scheme