wrap timeout with scope apply