basic stream interface for login