support relative path and more info in debug mode