fixed some errors we had after migrating to dept machines