bugfixes and telalogin changes