restore path
debug printing