add link and debug mode