fixed multiprocess and gui