added loadPipelineSync() function