moved debug import and sys path import to load at corect time