cleanup parse bugs and make debug path a parameter