another try to get factories working