smarter resource links stuff