transformer fixes, clean up, toFactoryPos feature