changed analysis module to use multiprocess