use next tick for 0.8 compat