runSequentially helper