adding link and monitor code in linkmon module