moved some stuff from transcraft into here