rewrote tmx loader