quick dirty fix for it to work with TRM