using string substitution for external library declaration