changed 'keepAliveTimer' to 'keepAliveCheck'; simplified 'keepAliveCheck'