moved process submit to new thread