adding a failure counter for the linking functions
moving status line for post_pull to create_links function