added basic parallel support