reduce memory footprint by using only a signle process