handling of "no connection"
write to logfile implemented