make keep_alive an option