fixed connection handling
fixed css class usage