added keepAlive option