better handling sync keywords, configurable keyword timeout