added smart open feature.