Converted link rules into a macro so they can be exported
Fixed get_error import errors