moved process factory to shared lib