login + rework InpStream