simplified running in parallel or on single cpu