stable version for segue and login