support both local and external links
fix expand out functionallity