fixed optional requirment check in timeout