fixed thread wait to 5 sec (was 500)