debug, fixed model location problems