add print and timeout