added support for multiple login accounts (without permissions as far)