modified approach, STILL can't handle .tx